<template>
  <el-input @input="update" :value=input :placeholder="prompt"/>
</template>

<script>
export default {
  name: 'Index',
  data() {
    return {
      input: '',
    }
  },
  props: {
    prompt: {
      type: String,
      default: ''
    },
  },
  methods: {
    update(val) {
      this.input=val;
      console.log(this.input);
    }
  },
}
</script>

<style scoped>

</style>
